<?php
namespace app\api\controller\comv1;
class Attachment extends Base
{
    //上传图片
    public function upimg()
    {
        $rs = m('Attachment','xcom')->upimg();
        if($rs){
            suc(['url'=>$rs]);
        }else{
            err(m('Attachment','xcom')->getError());
        }
    }
}
